package com.qiangesoft.miniapp.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 用户登录
 *
 * @author qiangesoft
 * @date 2024-07-17
 */
@Data
public class UserLoginDTO {

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空", groups = {AccountLogin.class})
    private String username;

    /**
     * code
     */
    @NotBlank(message = "微信code不能为空", groups = {BindLogin.class})
    private String code;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = {AccountLogin.class})
    private String password;

    /**
     * wxOpenId
     */
    @NotBlank(message = "wxOpenId不能为空", groups = {AuthLogin.class, BindLogin.class})
    private String wxOpenId;

    public interface AuthLogin {
    }

    public interface BindLogin {
    }

    public interface AccountLogin {
    }

}
